Skip to content

[messageport] Add regression integration tests#1043

Merged
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:messageport-add-integration-tests
Jun 18, 2026
Merged

[messageport] Add regression integration tests#1043
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:messageport-add-integration-tests

Conversation

@seungsoo47

Copy link
Copy Markdown
Contributor

Add 5 integration test cases covering previously untested public API:

  • LocalPort.registered reflects the register/unregister lifecycle.
  • LocalPort.register throws when the port is already registered.
  • LocalPort.unregister is a no-op when the port is not registered and is safe to call repeatedly.
  • Round-trip an empty string message.
  • Round-trip a nested collection (list and map) message.

This is a Tizen-exclusive plugin with no upstream package. Test-only change, recorded under the existing NEXT changelog entry without a version bump. Validated on a Raspberry Pi 4 device and the TV emulator: 19 passed, 0 failed.

Add 5 integration test cases covering previously untested public API:

- LocalPort.registered reflects the register/unregister lifecycle.
- LocalPort.register throws when the port is already registered.
- LocalPort.unregister is a no-op when the port is not registered and is
  safe to call repeatedly.
- Round-trip an empty string message.
- Round-trip a nested collection (list and map) message.

This is a Tizen-exclusive plugin with no upstream package. Test-only change,
recorded under the existing NEXT changelog entry without a version bump.
Validated on a Raspberry Pi 4 device and the TV emulator: 19 passed, 0 failed.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds five integration tests to messageport_test.dart covering the LocalPort lifecycle and additional message types (empty string and nested collections), and updates the changelog. The review feedback suggests using addTearDown in the lifecycle tests to ensure the local port is unregistered even if an assertion fails, preventing potential test pollution.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/messageport/example/integration_test/messageport_test.dart
…tests

Register the LocalPort cleanup with addTearDown in the lifecycle tests so the
port is always unregistered even if an assertion fails mid-test, preventing
leaked registrations from accumulating across tests.

Validated on a Raspberry Pi 4 device: 19 passed, 0 failed.
@seungsoo47 seungsoo47 merged commit ee2878e into flutter-tizen:master Jun 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants